package com.zlsy.springbootdemo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author zhouliang
 * @date 2020/5/30 11:48
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MovieCast {

    @Field(name = "character", type = FieldType.Text, analyzer = "standard")
    private String character;

    @Field(name = "name", type = FieldType.Text, analyzer = "standard")
    private String name;

}
